﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NewCapturerDemo
{
	public class ComboBoxItem
	{
        public ComboBoxItem(string theKey,string theValue)
		{
            key = theKey;
            value = theValue;
        }

        private String key;
		private String value;

        public String Key
        {
            get
            {
                return key;
            }
            set
            {
                this.key = value;
            }
        }
        public String Value
        {
            get
            {
                return value;
            }
            set
            {
                this.value = value;
            }
        }


        //必须重写ToString方法，不然显示的是类的信息
        public override string ToString()
        {
            return this.value;
        }
    }   
}
